#!/bin/bash

if [ -z "$2" ]; then
	echo "Usage: $0 /module/resource filename"
	echo "Inserts resource in filename into specified REST resources list"
	exit 0
fi
path=$1
file=$2

curl -v -X POST -H "Content-Type: application/xml" --data-binary @$file http://localhost:8080/tlnk$path
